﻿Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.ComponentModel
Imports AjaxControlToolkit

' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
' <System.Web.Script.Services.ScriptService()> _
<WebService(Namespace:="http://tempuri.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
<System.Web.Script.Services.ScriptService()> _
Public Class slidesService
    Inherits System.Web.Services.WebService

    <WebMethod()> _
    Public Function Getslides() As AjaxControlToolkit.Slide()

        Dim Mysldshow(4) As AjaxControlToolkit.Slide
        Mysldshow(0) = New AjaxControlToolkit.Slide("Images/run.jpg", "run", "Cool moon night...")
        Mysldshow(1) = New AjaxControlToolkit.Slide("Images/swades.jpg", "swades", "Red moon desert...")
        Mysldshow(2) = New AjaxControlToolkit.Slide("Images/tmk.jpg", "tmk", "Beautiful tulips...")
        Mysldshow(3) = New AjaxControlToolkit.Slide("Images/yamla.jpg", "yamla", "Way to home...")
        Mysldshow(4) = New AjaxControlToolkit.Slide("Images/dhoom2.jpg", "dhoom2", "Age of mythology...")
        Return Mysldshow
    End Function
    '<System.Web.Services.WebMethod()> _
    '<System.Web.Script.Services.ScriptMethod()> _
    'Public Function getslides() As AjaxControlToolkit.Slide()
    '    Return New ajaxcontroltoolkit.slide() { _
    '    New ajaxcontroltoolkit.slide("images/run.jpg", "run", "cool moon night..."), _
    '    New ajaxcontroltoolkit.slide("images/swades.jpg", "swades", "red moon desert..."), _
    '    New ajaxcontroltoolkit.slide("images/tmk.jpg", "tmk", "beautiful tulips..."), _
    '    New ajaxcontroltoolkit.slide("images/yamla.jpg", "yamla", "way to home...")}
    'End Function


End Class